package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Rechargereview entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "rechargereview", catalog = "imcdbserver")
public class Rechargereview implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer corpId;
	private double amount;
	private String time;
	private double money;

	// Constructors

	/** default constructor */
	public Rechargereview() {
	}

	/** minimal constructor */
	public Rechargereview(Integer corpId, double amount, String time) {
		this.corpId = corpId;
		this.amount = amount;
		this.time = time;
	}

	/** full constructor */
	public Rechargereview(Integer corpId, double amount, String time,
			double money) {
		this.corpId = corpId;
		this.amount = amount;
		this.time = time;
		this.money = money;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "corp_id", nullable = false)
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	@Column(name = "amount", nullable = false, precision = 22, scale = 0)
	public double getAmount() {
		return this.amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	@Column(name = "time", nullable = false, length = 20)
	public String getTime() {
		return this.time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	@Column(name = "money", precision = 22, scale = 0)
	public double getMoney() {
		return this.money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

}